package com.zenith.edu.po.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zenith.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("edu_forum_reply")
@Schema(name = "EduForumReply", description = "论坛回复实体")
public class EduForumReply extends BaseEntity {
    
    @Schema(description = "主题ID")
    private Long topicId;
    
    @Schema(description = "父回复ID（楼中楼），0表示直接回复主题")
    private Long parentId;
    
    @Schema(description = "回复用户ID")
    private Long userId;
    
    @Schema(description = "用户类型：1-学生 2-教师")
    private Integer userType;
    
    @Schema(description = "回复内容")
    private String content;
    
    @Schema(description = "点赞次数")
    private Integer likeCount;
    
    @Schema(description = "是否最佳答案：0-否 1-是（仅问答类型）")
    private Integer isBestAnswer;
    
    @Schema(description = "附件URL列表（JSON数组）")
    private String attachmentUrls;
    
    @Schema(description = "子回复数量（楼中楼数量）")
    private Integer replyCount;
    
    @Schema(description = "状态：1-正常 2-隐藏 3-已删除")
    private Integer status;
}